package com.mapper;

import com.pojo.Taocan;
import com.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public List<User> selectUserAll();
    public User login(User user);
    public void register(User user);
    User getUserByCardNumber(String cardNumber);
    User loginByNumberAndPassword(@Param("number") String number, @Param("mima") String mima);
    void updateUser(User user); // 用于更新用户信息（余额、余量）
    User getUserById(int id);
}
